Skip to main content

Creating a new entity

5 Tasks

15 mins

Visible to: All users
Intermediate Pega Customer Decision Hub '23 Data Management Data Model Next Best Action Decision Management English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Scenario

U+ Bank wants to improve the experience of its customers with personalized decisions that are driven by customer-centric engagement policies and predictive models. After an initial data mapping exercise, U+ Bank confirms that the 1:1 Financial Services data model is a great match.

The project team sets up the implementation application of Pega Customer Decision Hub™ by using the setup wizard.

As a Decisioning Architect, your role is to review the data model that the wizard sets up and perform a gap analysis by leading a data mapping workshop with the stakeholders.

As the output of the gap analysis, the project team identified the need to make the following extension to the Customer Insights Cache:

  • A new Offline Product Scores entity and properties to hold the offline product scores for U+ Bank. This new entity has a one-to-many relationship with the customer class that the U+ Bank data science team maintains.

As the Decisioning Architect, first, capture the requirements into the 1:1 Financial Services Data Model and work with the system architects to extend the Customer Insights Cache. Then, extend the customer profile with the newly defined entity.

Use the following credentials to log in to the exercise system:

Role User name Password
System Architect SystemArchitect rules
Decisioning Architect DecisioningArchitect rules

Your assignment consists of the following tasks:

Task 1: Download the Data Model documentation

As a Decisioning Architect, download the 1:1 Financial Services Data Model documentation from Pega Marketplace.

Task 2: Review and extend the Data Model documentation

As a Decisioning Architect, review the downloaded data model and then capture the requirements for the 1:1 Financial Services Data Model file. Update the documentation and add a new Offline Product Scores entity and the following properties:

Attribute Description Update frequency Type Notes

UniqueID

Unique identifier for each row in the table.

Updated monthly

Text

The column name is UID

CustomerID

Unique customer identifier that maps to the CustomerID in the customer class.

Updated monthly

Text

The column name is CustID

Score

An offline product score that represents the likelihood of a customer's interest in the product. It is a decimal between 0 and 1.

Updated monthly

Decimal

 

Category

Product category (Cards, Mortgage, Insurance, and so on).

Updated monthly

Text

 

Channel

The Channel name for which the score is calculated. (CallCenter, Web, Email, and so on).

Updated monthly

Text

 
Caution: For this exercise, this task is included only to raise awareness. There is no integration between the XLSX file and the Pega Data Model. The changes made in the XLSX file are for documentation purposes and to help you understand the existing data model and the structure of the Customer Insights Cache.

Task 3: Add and map a new data class

As a System Architect, create a new data class: UBank-CDH-Data-OfflineProductScores. Associate the new class with the OfflineProductScores database table, and then create the documented properties.

Note: In a real-life scenario, the database team typically creates the database table. For this exercise, the OfflineProductScores table already exists in the database for you.

Task 4: Create a new data set

As a Decisioning Architect, create a new OfflineProductScores data setData Set to access the OfflineProductScores database table.

Task 5: Add the OfflineProductScores data source to allow list

As a Decisioning Architect, extend the Customer Insights Cache with the newly defined offline product scores using the Customer Profile Designer.

 

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Download the Data Model documentation

  1. In your browser, access Pega Marketplace.
  2. In the search field, enter 1:1 Financial Services Data Model, then click the Search icon.
  3. On the results page, click 1:1 Financial Services Data Model.
    PegaMarketplace
  4. On the 1:1 Financial Services Data Model web page, in the Resources section, click Customer Insights Cache Excel to download the latest documentation file.
    CustomerAnalyticalDataModel
  5. Open the downloaded XLSX file to review the contents.

2 Review and extend the Data Model documentation

Caution: For this exercise, this task is included only to raise awareness. There is no integration between the XLSX file and the Pega Data Model. The changes made in the XLSX file are for documentation purposes and to help you understand the existing data model and the structure of the Customer Insights Cache.
  1. In the XLSX file, on the Data Objects tab, add the new entity and class definition.
    Data Objects defined in the FS Customer Analytical data model
  2. In the XLSX file, on the Data Model sheet, add the new properties and their details.
    The data model tab of the excel file
  3. In the XLSX file, on the Technical Details sheet, add the new properties and their technical details.
    The technical details tab of the excel file

3 Add and map a new data class

  1. On the exercise system landing page, click Launch Pega InfinityTM to log in to Dev Studio.
  2. Log in as the System Architect:
    1. In the User name field, enter SystemArchitect.
    2. In the Password field, enter rules.
  3. In the header of Dev Studio, click Configure > Data Model > Classes & Properties > Database Class Mappings to create a new database table class mapping.
    Navigation to Database class mappings
  4. On the Database Class Mappings tab, click New External Database Table Class Mapping to begin configuring the new mapping.
    Click the New External Database Table Class Mapping
  5. In the Database Table Class Mapping configuration window, in the Step 1 : Specify database table section, configure the following settings:
    1. In the Database name field, enter or select ExternalMKTData.
      DBName
      Note: A database rule defines the connection settings of Pega to a specific database. The ExternalMKTData database rule is configured as a precondition to the installation of Customer Decision Hub. All customer tables reside in the externalmktdata database schema in this exercise environment and are accessed through the ExternalMKTData database rule.
    2. In the Schema name field, enter or select externalmktdata.
    3. In the Table name field, enter or select offlineproductscores.
      TableName
  1. In the Database Table Class Mapping configuration window, in the Step 2: Specify ruleset class section, configure the following settings:
    1. In the Ruleset Name field, enter or select CDH-Rules.
    2. In the Class Name field, enter UBank-CDH-Data-OfflineProductScores.
      Specify the ruleset and class name of Offlinescores
  2. In the Database Table Class Mapping configuration window, in the Step 3: Map database table columns to properties in the ruleset class section, configure the following settings:
    1. In the Property name column, enter the following property names:
      • UniqueID
      • CustomerID
      • Score
      • Category
      • Channel
      Property to columns mappings
    2. Click Submit to create the UBank-CDH-Data-OfflineProductScores class.
      Tip: This configuration creates a new class, UBank-CDH-Data-OfflineProductScores, new properties with the given names and types, and maps the database columns to the new properties.
  1. In the navigation pane of Dev Studio, click App to open the App Explorer:
    1. In the search field, enter UBank-CDH-Data-OfflineProductScores.
      Search for the OfflineScores class
    2. Right-click the UBank-CDH-Data-OfflineProductScores class, and then select Definition to open the class definition.
      Launch the class definition
    3. Click the External Mapping tab to confirm the property mapping.
      Confirm the external mapping
  2. Click the General tab to test your connection and mappings:
    1. In the Test connection section, click Test connection to confirm that there are no issues.
      The confirmation window
    2. Close the confirmation window.
    3. In the upper-right corner, click Save.

4 Create a new data set

  1. In the header of Dev Studio, click Create > Data Model > Data Set to create a new data set.
    Creating a new data set from create menu
  2. On the Create Data Set tab, create a new data set:
    1. In the Label field, enter Offline Product Scores.
    2. In the Type list, confirm that Database Table is selected.
    3. In the Apply to field, enter or select UBank-CDH-Data-OfflineProductScores.
    4. In the Add to ruleset list, select CDH-Rules.
    5. In the upper-right corner, click Create and open to open the data set.
      Data set configuration for the OfflineScores data set
    6. In the Database table tab, in the Selectable keys section, click Add key and enter or select .CustomerID.
      Adding customerID as selectable key
      Caution: Adding the CustomerID to the data set is a necessary step to build the association between the CustomerID in the customer class and the CustomerID in the offline product score class. This configuration allows you to select CustomerID as a data source key when extending the customer profile.
    7. In the upper-right corner, click Save.
  1. In the lower-left corner, click the user profile icon, and then select Log off to log out of Dev Studio.

5 Add OfflineProductScores data source to allow list

  1. Log in as the Decisioning Architect:
    1. In the User name field, enter DecisioningArchitect.
    2. In the Password field, enter rules.
  2. In the navigation pane of Customer Decision Hub, click Data > Profile Data Sources.
  3. On the Profile Data Sources landing page, click Add > Data set to display the Add data set dialog box.
    Adding a new Data set in Profile Data Sources
  4. Add the data set to the allow list:
    1. In the Add data set window, select Select existing data set, and then click Next.
    2. In the Data set list, select Offline Product Scores.
    3. Click Add to include the data set in the allow list.
      SelectOfflineScoresDataset
  5. In the navigation pane of Customer Decision Hub, click Data > Profile Designer to access the customer profile.
    Select the Profile Designer in the navigation
  6. In the upper-right corner, click Edit to modify the customer profile.
  7. In the Customer (Primary) section, click Add associated data > Data set > Offline Product Scores to associate the data set with the customer.
    Add association for the offline scores data set
  8. In the Data source key list, select CustomerID and click Add to define the mapping of Offline Product Scores to the primary context (Customer).
    ConfirmMapping
    Note: The mapping automatically creates a page list property (Offline Product Scores) in the customer class and an association rule for the join condition between the customer and offline product scores entities where Customer.CustomerID is equal to OfflineProductScores.CustomerID.
  1. In the upper-right corner, click Save to complete the data association.
    Tip: Saving regenerates the data flows that populate the customer data in the clipboard.
  1. In the navigation pane of Customer Decision Hub, click Data > Data Flows.
  2. On the Data Flows landing page, double-click the CustomerData data flow.
    Launching the CustomerData data flow
  3. Confirm that the CustomerData data flow now contains the Offline Product Scores data set.
    Verify updated CustomerData data flow


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice